package com.example.dirviesystem.repository;

import com.example.dirviesystem.entity.Question;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface QuestionRe extends JpaRepository<Question, Long>, JpaSpecificationExecutor<Question> {


    List<Question> findByQuestionType(String questionType);

    List<Question> findByQuestionTypeAndSubject(String 单选, String examType, Pageable pageable);
}

